import gdal2tiles



gdal2tiles.generate_tiles('input_file', 'output_dir/', nb_processes=2, zoom='7-9')